import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@store/index'

Vue.config.productionTip = false

// element引入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 全局脚本
import axios from "@/assets/js/axios";
import { showLoading, hideLoading } from '@/assets/js/loading';

// 全局样式
import '@/assets/css/normal.css';

Vue.prototype.$axios = axios;
Vue.prototype.$loading = showLoading;
Vue.prototype.$loaded = hideLoading;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
